package com.swanclouds.redfish.common.redfish;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.ArrayList;
import java.util.List;

/**
 * @author 李文强
 * description
 */

public class NetworkPort {

    @JsonProperty("Type")
    private String type;

    @JsonProperty("PortNumber")
    private Integer portNumber;


    public NetworkPort type(String type) {
        this.type = type;
        return this;
    }


    public NetworkPort portNumber(Integer portNumber) {
        this.portNumber = portNumber;
        return this;
    }

    public static NetworkPort update() {
        return new NetworkPort();
    }

    public static List<NetworkPort> networkPortList(NetworkPort networkPort){
        List<NetworkPort> networkPort1 = new ArrayList<>();

        networkPort1.add(networkPort);

        return networkPort1;
    }
}
